<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends Action {
    public function index(){
		R('Public/index');
		
		$m=M('Content');
		$internet=$m->where('menuid=1')->order('ptime desc')->limit(7)->select();
		$sport=$m->where('menuid=2')->order('ptime desc')->limit(7)->select();
		$entertainment=$m->where('menuid=3')->order('ptime desc')->limit(7)->select();
		$news=$m->where('menuid=4')->order('ptime desc')->limit(7)->select();
		$this->assign('internet',$internet);
		$this->assign('sport',$sport);
		$this->assign('entertainment',$entertainment);
		$this->assign('news',$news);
		$this->display();
    }
}